<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center patentapplication_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub patentapplication_fd0_0'>
          <view class='flex flex-wrap align-center patentapplication_fd0_0_c0' @tap.stop="handleJumpDiy"
            data-type="back" data-url="1">
            <text class='fu-iconfont2  patentapplication_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='patentapplication_fd0_0_c1_c0'>{{type==1 ? '动态内容' : '专利申请'}}</text>
          </view>
          <view class='flex flex-wrap align-center justify-end patentapplication_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout selectdynamic_flex_1">
        <view class='flex flex-wrap align-center flex-sub selectdynamic_fd1_0' v-for="(item,index) in dataList"
          :key="index" @click.stop="chooseItem(item)">
          <text v-if="type==''" class='selectdynamic_fd1_0_c0'>{{item.title}}</text>
          <text v-if="type=='1'" class='selectdynamic_fd1_0_c0'>{{item.classificationname}}</text>
        </view>
      </view>
      <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
        :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        dataList: [],
        type: ''
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      if (options.type) {
        this.type = options.type
      }
      this.getData()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      chooseItem(item) {
        uni.$emit('patent', item)
        uni.navigateBack()
      },
      getData() {
        let urls = ''
        if (this.type) {
          urls = global.apiUrls.post6698b972742d1
        } else {
          urls = global.apiUrls.post6698cf8aefb0b
        }
        this.minixPagingListsApi = urls;
        this.pageingListApiMethod = 'post';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {}
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();
      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .patentapplication_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .patentapplication_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .patentapplication_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .patentapplication_fd0_0_c0 {
    width: 120rpx;
  }

  .patentapplication_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }


  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(255, 255, 255, 1);
    background-size: 100% auto;
  }

  .selectdynamic_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .selectdynamic_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .selectdynamic_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .selectdynamic_fd0_0_c0 {
    width: 80rpx;
  }

  .selectdynamic_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .selectdynamic_flex_1 {
    width: 702rpx;
    margin: 0rpx auto 0rpx auto;
  }

  .selectdynamic_fd1_0_c0 {
    font-size: 32rpx;
  }

  .selectdynamic_fd1_0 {
    border-bottom: 1px solid #eee;
    line-height: 100rpx;
    height: 100rpx;
  }
</style>
